package xyz.xiaomuyu.moment_read_app.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import xyz.xiaomuyu.moment_read_app.R;
import xyz.xiaomuyu.moment_read_app.activity.Read;
import xyz.xiaomuyu.moment_read_app.yuedu.yuedu1;
import xyz.xiaomuyu.moment_read_app.yuedu.yuedu2;
import xyz.xiaomuyu.moment_read_app.yuedu.yuedu3;
import xyz.xiaomuyu.moment_read_app.yuedu.yuedu4;

public class HomePageFragment_yuedu extends Fragment {



    private static final String ARG_PARAM1 = "param1";

    private String mParam1;

    private TextView textView;



    public static HomePageFragment_yuedu newInstance(String param1) {
        HomePageFragment_yuedu fragment = new HomePageFragment_yuedu();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getArguments() != null) {
            mParam1 = getArguments().getString(ARG_PARAM1);
        }

    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {


        View rootView = inflater.inflate(R.layout.fragment_home_page_tuwen, container, false);


        LinearLayout a = rootView.findViewById(R.id.tab011);
        a.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {
                Intent it = new Intent(getActivity(),  yuedu1.class);
               startActivity(it);
            }
        });

        LinearLayout a2 = rootView.findViewById(R.id.tab2);
        a2.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {
                Intent it = new Intent(getActivity(), yuedu2.class);
                startActivity(it);
            }
        });

        LinearLayout a3 = rootView.findViewById(R.id.tab3);
        a3.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {
                Intent it = new Intent(getActivity(), yuedu3.class);
                startActivity(it);
            }
        });

        LinearLayout a4 = rootView.findViewById(R.id.tab4);
        a4.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View v)
            {
                Intent it = new Intent(getActivity(), yuedu4.class);
                startActivity(it);
            }
        });


        return rootView;

    }


}
